<div class="view">
 <?php
if (isset($data)){
 $options = array(
        'success' => "js:function(data, textStatus, XMLHttpRequest) {
            console.log(data);
        }"
    );
    
    echo '<table id="detail-profile" class="detail-view table">';
    foreach($data as $key => $values){
        $id = $values['id'];
        echo '<tr><th>'.$values->profile['name'].'</th><td>'.$values['fill'].'</td><td>'.CHtml::ajaxLink('Delete', CHtml::normalizeUrl(array('TrMDokterProfile/deleteProfile&id='.$id)),array(
        'success' => "js:function(data, textStatus, XMLHttpRequest) {
            location.reload();
        }"
    ),array('confirm'=>"Anda Yakin ingin menghapus data ini?")).'</td><tr>';
        
    }
    echo '</table>';
};
?>
    <br />

</div>